// use 可以在条件里用

import { use } from "react";
const getMessage = Promise.resolve("hello");
const getAnotherMessage = Promise.resolve("world");
function App() {
  const condition = true;
  const data = condition ? use(getMessage) : use(getAnotherMessage);
  return <div>{data}</div>;
}
export default App;
